var initialState = {
    newsLists:{},
    newsClassify:{},
    newsDetail:{},
    newsType:{}
}
function newsReducer(state=initialState,action){
    switch(action.type){      
        case "GETNEWSLISTS":
            return Object.assign({},state,{newsLists: action.data});
        case "GETNEWSCLASSIFY":
        return Object.assign({},state,{newsClassify:action.data});
        case "GETNEWSCDETAIL":
        return Object.assign({},state,{newsDetail:action.data});
        case "GETNEWSTYPE":
        return Object.assign({},state,{newsType:action.data});
            default:
            return state;
}
}
export default newsReducer;
